package com.huangwei.service.impl;

import com.huangwei.dao.BannerDao;
import com.huangwei.model.Banner;
import com.huangwei.service.BannerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BannerServiceImpl implements BannerService {
    @Resource
    private BannerDao bannerDao;

    public List<Banner> getAllBanners() {
        try {
            return bannerDao.queryAll();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
